<template>
  <div class="app-container">
    <el-form ref="form" :model="form" label-width="120px">
      <el-form-item label="标题关键字">
        <el-input v-model="form.title" style="width: 60%;"/>
      </el-form-item>
      <el-form-item label="附加数据">
        <el-drag-select v-model="form.region" style="width:500px;" multiple placeholder="请选择">
          <el-option v-for="item in form.type" :label="item.label" :value="item.value" :key="item.value" />
        </el-drag-select>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import ElDragSelect from '@/components/DragSelect'
export default {
  components: { ElDragSelect },
  data() {
    return {
      form: {
        title: '',
        region: '',
        type: []
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message('submit!')
    },
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>

